// import mongoose from "mongoose"
// 用户模型
const mongoose = require('mongoose')
const Schema = mongoose.Schema;
const UserManagementSchema = new Schema({
  _id: { type: String },
  // 用户名
  username:{
    type: String,
    unique: true,
    require: true
  },
  //   真实姓名
  truename: {
    type: String,
    require: true
  },
  //   手机号
  phone: {
    type: String,
    require: false
  },
  // 禁启用
  job_statue: {
    type: Boolean,
    require: false
  },
  // 权限
  role: {
    type: Number,
    require: false
  }
})
 
mongoose.set('useCreateIndex', true);
module.exports = mongoose.model("userManagement", UserManagementSchema);
